using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Reflection;
using System.Diagnostics;

namespace Impact.Web.Admin
{
    /// <summary>
    /// code behind for the Admin master page
    /// </summary>
    public partial class Admin : System.Web.UI.MasterPage
    {
        /// <summary>
        /// override onload to perform startup functionality
        /// </summary>
        /// <param name="e"></param>
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
        }

        /// <summary>
        /// event handler is fired when the user clicks one of the tabs at the top of the screen
        /// </summary>
        protected void TabCommand(object sender, CommandEventArgs e)
        {
            string redirect = e.CommandArgument.ToString();
            Response.Redirect(redirect);
        }

        /// <summary>
        /// event handler is fired when the user clicks the sign out button
        /// </summary>
        protected void SignOut(object sender, CommandEventArgs e)
        {
            FormsAuthentication.SignOut();
            Response.Redirect("~/Default.aspx");
        }


    }
}
